<!--
 @description 交接信息
 @fileName Item.vue
 @author zengqiongying
 @created 2023/04/28 14:36:41
-->
<template>
  <div>
    <Cell
      v-if="!hiddenColumn.includes('fromCustomerCode')"
      :modelValue="modelValue.fromCustomerCode"
      title="原商家客户编码"
      readonly
      defaultValue="--"
    />
    <Cell
      v-if="!hiddenColumn.includes('fromCustomerName')"
      :modelValue="modelValue.fromCustomerName"
      title="原商家客户名称"
      readonly
      defaultValue="--"
    />
    <Cell
      v-if="!hiddenColumn.includes('fromAccountCode')"
      :modelValue="modelValue.fromAccountCode"
      title="原业务账号编码"
      readonly
      defaultValue="--"
    />
    <Cell
      v-if="!hiddenColumn.includes('fromAccountName')"
      :modelValue="modelValue.fromAccountName"
      title="原业务账号名称"
      readonly
      defaultValue="--"
    />
    <Cell
      v-if="!hiddenColumn.includes('fromShopCode')"
      :modelValue="modelValue.fromShopCode"
      title="原门店编码"
      readonly
      defaultValue="--"
    />
    <Cell
      v-if="!hiddenColumn.includes('fromShopName')"
      :modelValue="modelValue.fromShopName"
      title="原门店名称"
      readonly
      defaultValue="--"
    />
    <!-- <Cell :modelValue="modelValue.toAccountCode" title="现业务账号编码" readonly defaultValue="--" />
    <Cell :modelValue="modelValue.toAccountName" title="现业务账号名称" readonly defaultValue="--" /> -->
    <Cell :modelValue="modelValue.relationName" title="新老商家关系" readonly defaultValue="--" />
    <Cell :modelValue="modelValue.afterServiceAccountName" title="售后问题负责人" readonly defaultValue="--" />
    <Cell :modelValue="modelValue.reason" title="交接原因" readonly defaultValue="--" custom />
    <Cell
      :modelValue="[1, '1'].includes(modelValue.isTransferSales) ? '是' : '否'"
      title="销量是否转让"
      readonly
      defaultValue="--"
    />
    <Cell :modelValue="modelValue.rebatepRoblemName" title="返利对象" readonly defaultValue="--" />
    <Cell
      :modelValue="[1, '1'].includes(modelValue.isContinuePromotion) ? '是' : '否'"
      title="是否延续促销活动"
      readonly
      defaultValue="--"
    />
    <Cell
      :modelValue="[1, '1'].includes(modelValue.isTransferBalance) ? '是' : '否'"
      title="余额是否转让"
      readonly
      defaultValue="--"
    />
    <Cell
      :modelValue="[1, '1'].includes(modelValue.isTransferDeposit) ? '是' : '否'"
      title="经营保证金是否转让"
      readonly
      defaultValue="--"
    />
  </div>
</template>

<script lang="ts">
  import { defineComponent } from 'vue'
  import Cell from '@/components/Cell/index.vue'
  export default defineComponent({
    name: 'DealerCustomerHandoverItemView',
    components: { Cell },
    props: {
      modelValue: {
        type: Object,
        default: () => {}
      },
      hiddenColumn: {
        type: Array,
        default: () => []
      }
    },
    setup() {
      return {}
    }
  })
</script>
<style lang="less" scoped></style>
